home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 2000
/
MacHack 2000.toast
/
pc
/
The Hacks
/
Softshoe
/
Lisa's Mac Parts
/
AppleEvents
/
Simple Descriptors
/
AEBoolean.h
< prev
next >
Wrap
Text File
|
2000-06-23
|
569b
|
28 lines
// AEBoolean.h
#ifndef AEBoolean_h
#define AEBoolean_h
#ifndef AESimpleDescriptor_h
#include "AESimpleDescriptor.h"
#endif
class AEBoolean: public AESimpleDescriptor< typeBoolean, uint8 >
{
private:
typedef AESimpleDescriptor< typeBoolean, uint8 > Inherited;
public:
AEBoolean() {}
AEBoolean( bool value )
: AESimpleDescriptor< typeBoolean, uint8 >( value )
{}
bool Value() const { return Inherited::Value() != 0; }
void Set( bool value ) { Inherited::Set( value ); }
void operator=( bool value ) { Set( value ); }
};
#endif